package com.jinke.api.modules.ums.model;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 承运商渠道
 *
 * @author macro
 * @since 2020-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("channel_carrier")
@ApiModel(value="承运商渠道", description="承运商渠道")
public class CarrierRoot implements Serializable {

    @ApiModelProperty(value = "货运商名称")
    private String channelCarrierName;
    @ApiModelProperty(value = "货运商名称")
    private List<Leaf> leafs;

    public CarrierRoot(String channelCarrierName, List<Leaf> leafs) {
        this.channelCarrierName = channelCarrierName;
        this.leafs = leafs;
    }


    @Data
    public static class Leaf     {
        private Integer ids;
        private String pingtainame;
        //渠道名
        private String channelName;
    }


}
